import java.util.ArrayList;
import java.util.List;

public class Student extends Users{

    private String studentNo;
    private boolean gender;
    private String grade;
    private String department;
    private List<Team> teamList = new ArrayList<>();

    public Student(String id, String name, String phoneNo, String email, String studentNo, boolean gender, String grade, String department) {
        super(id, name, phoneNo, email);
        this.studentNo = studentNo;
        this.gender = gender;
        this.grade = grade;
        this.department = department;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public boolean isGender() {
        return gender;
    }

    public String getGrade() {
        return grade;
    }

    public String getDepartment() {
        return department;
    }

    public List<Team> getTeamList() {
        return teamList;
    }

    @Override
    public String toString() {
        StringBuilder student = new StringBuilder();
        student.append("Student{").
                append("studentNo='").append(studentNo).
                append(", gender=").append(gender).
                append(", grade='").append(grade).
                append(", department='").append(department).
                append(", teamList=").append(teamList.toString()).append("'}");
        return student.toString();
    }
}
